<template>
    <div>
        <div @click="back">返回</div> 
        <div v-for="(list,index) in img" :key="index">
            <p v-html="list.title"></p>
           <!-- <p v-html="list.text"></p> -->
           <img :src=list.img alt="">
        </div>
    </div>
</template>

<script>
import { error } from 'util';
export default {
    name:'yiyuan',
    data(){
        return{
            img:[]
        }
    },
    created(){  
        this.$axios.get('https://route.showapi.com/341-2',{
            params:{
                "showapi_appid": '74398', //这里需要改成自己的appid
                "showapi_sign": '4660d7800ca441c3838a066065b1c271',  //这里需要改成自己的应用的密钥secret
                "page":"1",
                "maxResult":"20",
            }})
        .then(res=>{ 
            console.log(res)
            this.img=res.data.showapi_res_body.contentlist
            console.log(this.img)
        }).catch(error=>console.log(error))
    },
     methods:{
    back(){
        this.$router.go(-1);//返回上一层
    },
},
}
</script>

<style scoped>
  
</style>

